package com.easy.mapper;

import com.easy.bean.Category;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryDao {

    int add(@Param("param") Category category);

    int del(@Param("id")Integer id);

    int edit(@Param("param")Category category);

    Category one(@Param("id")Integer id);

    List<Category> all(@Param("param")Category category);

    int pageCount(@Param("param")Category category);

    List<Category> page(@Param("page") Page page, @Param("param")Category category);
}
